API Documentation
Static Public Member Functions | List of all members
nkImages::ConversionUtils Class Referencefinal

Utility class offering helpers for conversions. More...

Static Public Member Functions

static nkMaths::Vector convertPixel (const nkMaths::Vector &pix, PIXEL_FORMAT inFormat, PIXEL_FORMAT outFormat)
 

Detailed Description

Utility class offering helpers for conversions.

Member Function Documentation

◆ convertPixel()

static nkMaths::Vector nkImages::ConversionUtils::convertPixel ( const nkMaths::Vector pix,
PIXEL_FORMAT  inFormat,
PIXEL_FORMAT  outFormat 
)
static

Converts a pixel from one format to another.

Parameters
pixThe pixel to convert.
inFormatProvided pixel's format.
outFormatWhich format to convert to.
Returns
The converted pixel, expressed in its outFormat.

The documentation for this class was generated from the following file: